﻿using System.Windows;

namespace GreenXi.Pages.Power
{
    /// <summary>
    /// ConfirmDialog.xaml 的交互逻辑
    /// </summary>
    public partial class ConfirmDialog : Window
    {
        public ConfirmDialog(string message)
        {
            InitializeComponent();
            MessageTextBlock.Text = message;
        }
        public ConfirmDialog()
        {
            InitializeComponent();
            MessageTextBlock.Text = "你确定要注销登录吗？";
        }

        private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = false;
        }
    }
}
